﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace QLBH.Models
{
    public class GoodModel : ModelBase
    {
        public GoodModel()
        {
        }
        public override NameValueCollection PrepareValue()
        {
            NameValueCollection postdata = new NameValueCollection();
            postdata.Add("code",this.Code);
             postdata.Add("name",this.Name);
             postdata.Add("category_id", this.Category_id.ToString());
            postdata.Add("expirate",this.Expirate);
            postdata.Add("import_price",this.Import_price.ToString());
            postdata.Add("wholesale_price",this.Wholesale_prices.ToString());
            postdata.Add("retail_price", this.Retail_price.ToString());
            postdata.Add("ware",this.Ware);
            postdata.Add("description",this.Description);
            postdata.Add("unit_id", this.Unit_id.ToString());
            return postdata;
        }
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private string created_at;

        public string Created_at
        {
            get { return created_at; }
            set { created_at = value; }
        }
        private string updated_at;

        public string Updated_at
        {
            get { return updated_at; }
            set { updated_at = value; }
        }
        private string code;

        public string Code
        {
            get { return code; }
            set { code = value; }
        }
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string expirate;

        public string Expirate
        {
            get { return expirate; }
            set { expirate = value; }
        }
        private double import_price;

        public double Import_price
        {
            get { return import_price; }
            set { import_price = value; }
        }
        private double wholesale_prices;

        public double Wholesale_prices
        {
            get { return wholesale_prices; }
            set { wholesale_prices = value; }
        }
        private double retail_price;

        public double Retail_price
        {
            get { return retail_price; }
            set { retail_price = value; }
        }
        private string ware;

        public string Ware
        {
            get { return ware; }
            set { ware = value; }
        }
        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        private int unit_id;

        public int Unit_id
        {
            get { return unit_id; }
            set { unit_id = value; }
        }
        private int category_id;

        public int Category_id
        {
            get { return category_id; }
            set { category_id = value; }
        }

    }
}
